package com.ncu.sports.service;

import com.github.pagehelper.PageInfo;
import com.ncu.sports.pojo.User;

import java.util.List;

public interface UserService {

    public int getUserByUsernameAndPassword(User user);

    public PageInfo<User> getUserByUsername(String name, int currentPage, int pageSize);

    /*public PageInfo<User> getUser(int currentPage, int pageSize);*/

    public int updateStateById(User user);

    public int insertUser(User user);

    public int deleteUser(int id);

    public User getUpdateUser(int id);

    public int updateUser(User user);

    public User getUpdateRole(int id);

    public int updateRole(User user);

}
